package ru.pstu.itas.themerchant;

import android.graphics.Bitmap;

public class Item {

	String title;
	Bitmap image;
	double price;
	String[] tags;
	String description;

	public Item(String title, Bitmap image, double price, String[] tags, String description) {
		this.title = title;
		this.image = image;
		this.price = price;
		this.tags = tags;
		this.description = description;
	}

	public String getTitle() {
		return title;
	}

	public Bitmap getImage() {
		return image;
	}

	public double getPrice() {
		return price;
	}

	public String[] getTags() {
		return tags;
	}

	public String getDescription() {
		return description;
	}

	public boolean hasTag(String tag) {
		for (String t : tags)
			if (t.equalsIgnoreCase(tag))
				return true;
		return false;
	}
}
